
	<?php
		if(empty($_GET['board']) or empty($_GET['customer']) or empty($_GET['business'])) {
			echo "项目参数错误";
			exit;
		}
		if($_GET['board'] == "empty" or $_GET['customer'] == "empty" or $_GET['business'] == "empty") {
			echo "项目参数错误";
			exit;
		}
		require_once("connect_sql.php");
			
		//project table
		$board = $_GET['board'];
		$customer = $_GET['customer'];
		$business = $_GET['business'];
		$project_id = 0;
		$author = "";
		$makefile = "";
		$platform = "";
		$function = "";
		$lcd = "";
		$camera = "";
		$rfpa = "";
		$classK = "";
		$lastVersion = "";
		$lastDate = "";
		$gbVersion = "";
		$ataVersion = "";
		
		$sql = "select * from project where board=\"$board\" and customer=\"$customer\" and business=\"$business\"";
		$result = mysql_query($sql);
		if(!$result) echo mysql_error();

		while($row = mysql_fetch_array($result)) {
			$project_id = $row['id'];
			$author = $row['author'];
			$makefile = $row['makefile'];
			$platform = $row['platform'];
			$function = $row['function'];
			$lcd = $row['lcd'];
			$camera = $row['camera'];
			$rfpa = $row['rfpa'];
			$classK = $row['classK'];
			$lastVersion = $row['lastVersion'];
			$lastDate = $row['lastDate'];
			$gbVersion = $row['gbVersion'];
			$ataVersion = $row['ataVersion'];
			
			echo $row['id'].'|';
			echo $row['author'].'|';
			echo $row['board'].'|';
			echo $row['customer'].'|';
			echo $row['business'].'|';
			echo $row['platform'].'|';
			echo $row['lastDate'].'|';
			echo $row['lastVersion'].'|';
			echo $row['ataVersion'].'|';
			echo $row['rfpa'].'|';
			echo $row['classK'].'|';
			echo $row['function'].'|';
			echo $row['camera'].'|';
			echo $row['lcd'];
			break;
		}
	?>
